package src.elevent;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Example_03 {

    private FileInputStream in = null;

    public void readInfo() {
        try {
            in = new FileInputStream("F:\\ideaProject\\demo\\demo\\java\\src\\elevent\\Example_02.java");
            System.out.println("创建io流对象");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
            //throw new RuntimeException(e);
        } finally {
            if (in != null) {
                try {
                    in.close();
                    System.out.println("关闭流对象");
                } catch (IOException e) {
                    e.printStackTrace();
                    System.out.println("关闭流发生异常");
                }

            }
        }
    }

        public static void main(String[] args) {
            Example_03 example03 = new Example_03();
            example03.readInfo();
        }

}
